<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="live.common.PropertiesManager"%>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/customTaglib.tld" prefix="ct" %>
<%@ taglib uri="/WEB-INF/tld/customTaglib.tld" prefix="ct" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的订单-话费充值</title>
<link href="/orderManager/member/css/login.css" rel="stylesheet" type="text/css" />
<LINK href="orderManager/member/css/header-min.css" rel=stylesheet>
<script type="text/javascript" src="orderManager/member/css/sdmenu.js">	</script>
<script type="text/javascript" src="/script/My97DatePicker/WdatePicker.js" defer="defer"></script>
</head>

<body>
<jsp:include page="/pub_head.jsp"></jsp:include>
	<!-- 中间 -->
	
	<div id="page-container" >
		
<form action="" method="post" style="margin: 0">
	  <div id="content" style="border: solid 1px #0183BD;"><div class="p16"><DIV class="tb-1">
  <table width="760" height="37">
	<tr>
		<td width="248" height="31" class="tdl">
		  <label>订单开始时间：</label>
		  <input id="startDate" size="15" name="startDate" class="Wdate" readonly="readonly" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d'})" value="${order.startDate }" readonly="readonly"/>		</td>
		<td width="246" class="tdl"><label>订单结束时间：</label>
		  <input id="endDate" size="15" name="endDate" class="Wdate" readonly="readonly" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'startDate\')}'})" value="${order.endDate }" readonly="readonly"/></td>
		<td width="183" class="tdl"><label>状态：
		    <select id="select" name="select">
              <option value="">全部</option>
              <option value="0">处理中</option>
              <option value="5">等待支付</option>
              <option value="2">充值完成</option>
               <option value="3">部分充值</option>
              <option value="4">充值失败</option>
            </select>
            <script type="text/javascript">
<!--		
			var state=${order.lastState};
			if(state!=-9){
			document.getElementById('select').value=state;
			}
//-->
</script>
		</label></td>
	    <td width="70" class="tdl"><button class="button2" style="font-size:11px" id="J_SearchOrders" type="submit">搜索</button>
		</td>
	</tr>
	<!-- add -->
</table>
      </DIV></div>
	  <div id="listbb">
	  <div align="center">
        <table class="tablet" cellspacing="1" cellpadding="3" border="0">
          <tr>
            <td class="tdt" height="31" style="font-weight: bolder;">
           	 <div class="ddba">订单号</div>
              <div class="ddba">商品名称</div>
              <div class="ddbh">手机号码</div>
			  <div class="ttbh" style="width: 120px">交易时间</div>
              <div class="ttbh">单价</div>
              <div class="ttbh">充值面额</div>
              <div class="ddbh">完成面额</div>
              <div class="ttbh">订单状态</div>
             </td>
          </tr>
          <logic:iterate id="order" name="orders">
	          <tr>
	           <td class="tdt" height="31">
	            <div class="ddba">${order.orderid}</div>
              <div class="ddba">${order.prodInfo}${order.proPrice}元</div>
              <div class="ddbh">${order.phonenum}</div>
			  <div class="ddbh" style="width: 120px"><bean:write name="order" property="dateTime" format="yy/MM/dd HH:mm:ss"/></div>
              <div class="ttbh">&yen;<font style="color: red; font-weight: bold;">${order.salePrice}</font></div>
              <div class="ttbh">&yen;<font style="color: blue; font-weight: bold;">${order.proPrice}</font></div>
              <div class="ddbh">&yen;<font style="color: green; font-weight: bold;">${order.realPrice}</font></div>
              <div class="ttbh"> <c:if test="${order.lastState==0}"><font style="color: green"><b>处理中</b></c:if>
	                  <c:if test="${order.lastState==5}"><font style="color: red"><b>等待支付</b></font></c:if>
	                  <c:if test="${order.lastState==2}"><font  class="ck">充值完成</font></c:if>
	                  <c:if test="${order.lastState==3}"><font style="color: black"><b>部分充值</b></font></c:if>
	                  <c:if test="${order.lastState==4}"><font style="color: color">充值失败</font></c:if></div>
             </td>
	          </tr>
          </logic:iterate>
	    </table>
      </div>
	</div>
	  <div id="xm">
	  <div id="hbfk"></div>
  	   <div class="sabrosus">
  	   	<ct:Pagination pageSize="${page.pageSize}" pageNo="${page.pageIndex}" totalRows="${page.recordCount}"/>
  	   </div> 
	  </div>
	</div>
</form>
	
<iframe id="frmLeft" name="frmLeft" src="/orderManager/left_buy.jsp" width="154" height="650" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
</div>
	<!-- 脚部 http://www.zemoitu.com/footer.jsp<iframe id="frmFoot" name="frmFoot" src="/footer.jsp" width="950" height="280" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>--> 
 
<div id="page-container">
<%@include file="/footer.jsp" %>
</div>

</body>
</html>